<h1>Results
  <% if !params[:search_what].blank? || !params[:search_where].blank? %>
      for
      <strong><%= params[:search_what] %></strong>
      <% if !params[:search_where].blank? && params[:lat].blank? %>
          and <strong><%= params[:search_where] %></strong>
      <% end %>
  <% end %>
</h1>

Results: <%= @places.total_entries.blank? ? 0 : @places.total_entries %>

<% if false %>
    <ul>
      <% #@places.links.each do |link|  %>
      <li><%#= link_to link.rel, {}, {:href => link.href} %></li>
      <% #end  %>
    </ul>
<% end %>

<% if @places.total_entries.blank? %>
    <%= render :partial => "layouts/empty" %>
<% else %>
    <ul class="phoneMenu">
      <% @places.places.each do |place|
          place_id = place.place_id
      %>

          <li>
            <a href="/places/<%= place_id %>" class="title"><%= place.title %></a>
            <ul>
              <li><%= render :partial => 'layouts/ratingstars', :locals => {:rating => place.average_rating} %></li>
            </ul>
          </li>
      <% end %>
    </ul>
<% end %>